<!DOCTYPE html>
   <body>
     <script type="text/javascript">
	    var i=0;
		document.write("<table>");
		 while(i<8){
		    document.write("<tr>");
		    if(i%2 == 0){
			   for(var j=0;j<8;j+=2){
		       document.write("<td style= background-color:black</td>");
			   }}
			   else{
			   document.write("<div style='background-color: white'>&nbsp</div>");
			   }
			   i++;
		 }
	 </script>
   </body>
</html>